package org.dairy.farms.model;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;

/**
 * Created by IntelliJ IDEA.
 * User: GDuggira
 * Date: 5/7/12
 * Time: 4:07 PM
 */
@Entity
@PrimaryKeyJoinColumn(name="ID")
public class LivestockFileType extends File{
    @ManyToOne(optional = false)
    private Livestock livestock;

    public Livestock getLivestock() {
        return livestock;
    }

    public void setLivestock(Livestock livestock) {
        this.livestock = livestock;
    }
}
